package com.ctiot.custom.oauth.constant;

import java.text.MessageFormat;

/**
 * @projectName: oauth-sdk-bim
 * @packageName: com.ctiot.bim.oauth.constant
 * @description:
 * @author: huayang.bai
 * @date: 2021-04-13 8:56
 */
public class OauthConstants {

    private OauthConstants() {
        throw new RuntimeException(MessageFormat.format("对不起，当前类[{0}]是工具类，不能被实例化！", this.getClass().getName()));
    }

    /**
     * 第三方登录，暂时配置为github
     */
    // 测试环境 10.140.41.17  iamtest.mss.ctc.com
    private final static String BASE_URL = "http://iamtest.mss.ctc.com:18010";
    // 生产环境 10.140.41.68:443 am.mss.ctc.com
    // private final static String BASE_URL = "https://am.mss.ctc.com";

    /**
     * 认证地址
     */
    // public final static String AUTHORIZE_URL = "https://gitee.com/oauth/authorize";
    public final static String AUTHORIZE_URL = "http://iamtest.mss.ctc.com:18010/idp/oauth2/authorize";
    /**
     * 获取token地址
     */
    //  public final static String ACCESS_TOKEN_URL = "https://gitee.com/oauth/token";
    public final static String ACCESS_TOKEN_URL = "http://10.128.91.38:20501/serviceAgent/rest/idp/getToken";
    /**
     * 检查token地址
     */
    // public final static String CHECK_TOKEN_URL = "https://github.com/login/oauth/access_token";
    public final static String CHECK_TOKEN_URL = "http://10.128.91.38:20501/serviceAgent/rest/idp/checkTokenValid";
    /**
     * 刷新token
     */
    // public final static String REFRESH_TOKEN_URL = "https://gitee.com/oauth/token";
    public final static String REFRESH_TOKEN_URL = "http://10.128.91.38:20501/serviceAgent/rest/idp/refreshToken";
    /**
     * 获取用户信息地址
     */
    // public final static String GET_USER_INFO_URL = "https://gitee.com/api/v5/user";
    public final static String GET_USER_INFO_URL = "http://10.128.91.38:20501/serviceAgent/rest/idp/getUserInfo";


}
